package com.n5x.service.impl;

import com.n5x.mapper.statistics.StatisticsMapper;
import com.n5x.service.IStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/9/22.
 */
@Service
@Transactional
public class IStatisticsServiceImpl implements IStatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    public List countSalesAmountByDate(Map<String, Object> params) {
        return statisticsMapper.countSalesAmountByDate(params);
    }

    public List countSalesAmountByMonth(Map<String, Object> params) {
        return statisticsMapper.countSalesAmountByMonth(params);
    }

    public List countGoodsSalesByDate(Map<String, Object> params) {
        return statisticsMapper.countGoodsSalesByDate(params);
    }


    public List countGoodsSalesByMonth(Map<String, Object> params) {
        return statisticsMapper.countGoodsSalesByMonth(params);
    }

    public String recharge(Map<String, Object> params) {
        return statisticsMapper.recharge(params);
    }

    public String sales(Map<String, Object> params) {
        return statisticsMapper.sales(params);
    }

    public List twiceRechargeUsers() {
        return statisticsMapper.twiceRechargeUsers();
    }
}
